package com.aspose.cells;

class zuv implements zaic {
   protected Color a;
   protected Color b;
   protected int c = 2;
   protected int d;
   protected int e;
   protected com.aspose.cells.b.a.b.zc f = null;
   protected boolean g = true;

   public void a(Color var1, Color var2, int var3, int var4, int var5) {
      this.a = var1;
      this.g = true;
      this.b = var2;
      this.c = var3;
      this.d = var4;
      this.e = var5;
   }

   public boolean a(zn var1, com.aspose.cells.b.a.b.zh var2, int var3, int var4, String var5, com.aspose.cells.b.a.b.zn var6, com.aspose.cells.b.a.b.zv var7) {
      int var8 = Math.abs(this.d);
      if (Math.abs(this.d) == Math.abs(this.e)) {
         var8 = Math.abs(this.d);
      } else if (Math.abs(this.d) > Math.abs(this.e)) {
         var8 = Math.abs(this.e);
      } else if (Math.abs(this.d) < Math.abs(this.e)) {
         var8 = Math.abs(this.d);
      }

      for(int var9 = 0; var9 < var8; ++var9) {
         com.aspose.cells.b.a.b.a.ze var10 = new com.aspose.cells.b.a.b.a.ze();
         var10.a(var5, var2, var3, (float)var4, new com.aspose.cells.b.a.b.zn(var6.a() + var9 * -this.d / var8, var6.b() + var9 * -this.e / var8), var7);
         com.aspose.cells.b.a.b.zm var11 = new com.aspose.cells.b.a.b.zm(this.b, (float)this.c);
         var11.e(2);
         var1.a(var11, var10);
         if (this.g) {
            com.aspose.cells.b.a.b.zu var12 = new com.aspose.cells.b.a.b.zu(this.a);
            var1.a((com.aspose.cells.b.a.b.zc)var12, (com.aspose.cells.b.a.b.a.ze)var10);
         } else {
            var1.a(this.f, var10);
         }
      }

      return true;
   }

   public boolean a(zn var1, com.aspose.cells.b.a.b.zh var2, int var3, int var4, String var5, com.aspose.cells.b.a.b.zn var6, com.aspose.cells.b.a.b.zv var7, float[] var8, float[] var9) {
      com.aspose.cells.b.a.b.a.ze var10 = new com.aspose.cells.b.a.b.a.ze();
      var10.a(var5, var2, var3, (float)var4, var6, var7);
      var8[0] = (float)var6.a();
      var9[0] = (float)var6.b();
      boolean var11 = zabw.a(var1, var10, var8, var9);
      if (!var11) {
         return false;
      } else {
         float var12 = 0.0F;
         float var13 = 0.0F;
         float[] var14 = new float[]{var12};
         float[] var15 = new float[]{var13};
         var11 = zabw.a(var1, (float)this.c, 0.0F, var14, var15);
         var12 = var14[0];
         var13 = var15[0];
         if (!var11) {
            return false;
         } else {
            var8[0] += var12;
            var9[0] += var12;
            return true;
         }
      }
   }
}
